From 16ecd743c665111bd628ef65be696d8232f639c8 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 15 Aug 2022 13:41:23 +0100 Subject: [PATCH] d/rules: Force softpipe OpenGL driver on mips* architectures This is a workaround for misrendering and crashes when the buildds run tests under llvmpipe on these architectures (see #993550, #1003348, #1010838). --- debian/rules | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/debian/rules b/debian/rules index 094f60e7e1..3e7cbb2bc1 100755 --- a/debian/rules +++ b/debian/rules @@ -217,6 +217,12 @@ $(info Architecture with qemu buildds detected, increasing test timeout a lot) test_timeout_multiplier = 20 endif +ifneq ($(filter mips%,$(DEB_HOST_ARCH_CPU)),) +$(info Disabling use of llvmpipe due to mips family CPU, see https://bugs.debian.org/993550) +export GALLIUM_DRIVER=softpipe +export LIBGL_ALWAYS_SOFTWARE=true +endif + fuzzy_gsk_compare = \ $(NULL) @@ -255,11 +261,6 @@ ifeq (big,$(DEB_HOST_ARCH_ENDIAN)) $(NULL) endif -# Workaround for https://bugs.debian.org/1010838 -ifeq (mipsel,$(DEB_HOST_ARCH_CPU)) -export GALLIUM_DRIVER=softpipe -endif - override_dh_auto_test: env \ BUILDDIR=debian/build/deb \ -- 2.30.2